package com.yyfax.account.dao;

import com.yyfax.account.common.plugin.PageAdapter;
import com.yyfax.account.domain.AccountFlow;
import com.yyfax.account.vo.AccountFlowVO;
import com.yyfax.account.vo.UserQueryFlowReq;
import org.apache.ibatis.annotations.Param;

public interface AccountFlowDao {

	/**
	 * @mbggenerated
	 */
	int insert(@Param("record") AccountFlow record, @Param("segment") String segment);

	/**
	 * @mbggenerated
	 */
	int updateByPrimaryKey(AccountFlow record);

	/**
	 * 根据用户Id查询账户流水
	 * 
	 * @author maojian
	 * @date 2017-09-02 10:43:48
	 * @since v1.0.0
	 * @param userId
	 * @return
	 */
	PageAdapter<AccountFlowVO> queryAccountFlowByUser(@Param("req") UserQueryFlowReq req, @Param(PageAdapter.PAGE) int _pageNo, @Param(PageAdapter.SIZE) int _pageSize, @Param("segment") String segment);
}